package cn.zymall.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@Data
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "short_message")
public class ShortMessage extends BaseEntity implements Serializable {
    public static final String COL_TEMPLDATE_CODE = "TEMPLDATE_CODE";
    /**
     * 短信编号
     */
    @TableId(value = "MESSAGE_ID", type = IdType.AUTO)
    private Integer messageId;

    /**
     * 模板名称
     */
    @TableField(value = "TEMPLATE_NAME")
    private String templateName;

    /**
     * 模板内容
     */
    @TableField(value = "TEMPLATE_CONTENT")
    private String templateContent;

    /**
     * 模板类型(0：验证码。1：短信通知。2：推广短信。3：国际/港澳台消息。)
     */
    @TableField(value = "TEMPLATE_TYPE")
    private Byte templateType;

    /**
     * 模板申请说明
     */
    @TableField(value = "TEMPLDATE_EXPLAIN")
    private String templdateExplain;

    /**
     * 状态(0:审核 1:通过 2.停用)
     */
    @TableField(value = "TEMPLATE_STATUS")
    private Byte templateStatus;

    /**
     * 模板code
     */
    @TableField(value = "TEMPLATE_CODE")
    private String templateCode;
    /**
     * 模板参数
     */
    @TableField(value = "TEMPLATE_PARAM")
    private String templateParam;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField(value = "TEMPLATE_CREATE_TIME")
    private Date templateCreateTime;

    /**
     * 创建人
     */
    @TableField(value = "TEPMLATE_CREATE_USER")
    private Integer tepmlateCreateUser;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField(value = "TEMPLATE_UPDATE_TIME")
    private Date templateUpdateTime;

    /**
     * 修改人
     */
    @TableField(value = "TEMPLATE_UPDATE_USER")
    private Integer templateUpdateUser;

    private static final long serialVersionUID = 1L;

    public static final String COL_MESSAGE_ID = "MESSAGE_ID";

    public static final String COL_TEMPLATE_NAME = "TEMPLATE_NAME";

    public static final String COL_TEMPLATE_CONTENT = "TEMPLATE_CONTENT";

    public static final String COL_TEMPLATE_TYPE = "TEMPLATE_TYPE";



    public static final String COL_TEMPLDATE_EXPLAIN = "TEMPLDATE_EXPLAIN";

    public static final String COL_TEMPLATE_STATUS = "TEMPLATE_STATUS";

    public static final String COL_TEMPLATE_CODE = "TEMPLATE_CODE";

    public static final String COL_TEMPLATE_PARAM = "TEMPLATE_PARAM";

    public static final String COL_TEMPLATE_CREATE_TIME = "TEMPLATE_CREATE_TIME";

    public static final String COL_TEPMLATE_CREATE_USER = "TEPMLATE_CREATE_USER";

    public static final String COL_TEMPLATE_UPDATE_TIME = "TEMPLATE_UPDATE_TIME";

    public static final String COL_TEMPLATE_UPDATE_USER = "TEMPLATE_UPDATE_USER";
}
